package com.huichaoliu.stylist.activity;

import java.util.ArrayList;
import java.util.List;

import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.ListView;
import android.widget.TextView;

import com.huichaoliu.adapters.StylistNotifyAdapter;
import com.huichaoliu.app.R;
import com.huichaoliu.data.UtilInfo;
import com.rederxu.farmer.BaseActivity;

public class StylistNewNotifyActivity extends BaseActivity {
	// tools
	Context context;

	// Views
	ListView listView;
	
	//list
	List<UtilInfo> list;
	
	//adapter
	StylistNotifyAdapter adapter;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.stylist_new_notify_layout);
		super.onCreate(savedInstanceState);
	}

	@Override
	public void init() {
		context = this;
		
		findViewById(R.id.stylist_back).setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				finish();
			}
		});
		((TextView)findViewById(R.id.stylist_name)).setText("新消息");
		
		listView = (ListView) findViewById(R.id.stylist_notify);
	}

	@Override
	public void initData() {
		list = new ArrayList<UtilInfo>();
		for (int i = 0; i < 10; i++) {
			list.add(new UtilInfo());
		}
		adapter = new StylistNotifyAdapter(context, list);
		listView.setAdapter(adapter);

	}

	@Override
	public void onNetworkChanged(boolean isMobNetConnected,
			boolean isWifiConnected) {
		// TODO Auto-generated method stub

	}

}
